package com.car.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.car.entity.Integral;
import com.car.mapper.IntegralMapper;
import com.car.service.IntegralService;
import com.car.vo.IntegralVo;

@Service
public class IntegralServiceImpl implements IntegralService{
	
	@Autowired
	IntegralMapper integralMapper;

	@Override
	public List<Integral> selectByUserId(Integer userId, Integer integrationUseType) {
		// TODO Auto-generated method stub
		return integralMapper.selectByUserId(userId, integrationUseType);
	}

	@Override
	public int sumIntegral(Integer userId) {
		// TODO Auto-generated method stub
		return integralMapper.sumIntegral(userId);
	}

	@Override
	public List<IntegralVo> selectByUserIdToOrderId(Integer userId) {
		// TODO Auto-generated method stub
		return integralMapper.selectByUserIdToOrderId(userId);
	}



}